package com.ldy.core.entity;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;

/**
 * 审计日志
 */
@Data
@TableName("base_audit_log")
public class BaseAuditLog {

	@TableId(type = IdType.UUID)
	private String id;

	private String username;
	private String requestUri;
	private String httpMethod;
	private String clientIp;
	
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;

}
